package com.ruoyi.project.jxc.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Objects;

public class JxcDrug extends BaseEntity {
    private Long drugId;
    private Long mfId;
    private String drugName;
    private String drugCode;
    private String drugType;
    private String drugRxType;
    private String drugUnit;
    private String drugKey;
    private Double drugRxPrice;
    private Long drugStocks;
    private Integer drugWarning;
    private Integer drugMatrixing;
    private String status;
    private JxcMf mf;

    @Override
    public String toString() {
        return "JxcDrug{" +
                "drugId=" + drugId +
                ", drugName='" + drugName + '\'' +
                ", drugCode='" + drugCode + '\'' +
                ", drugType='" + drugType + '\'' +
                ", drugRxType='" + drugRxType + '\'' +
                ", drugUnit='" + drugUnit + '\'' +
                ", drugKey='" + drugKey + '\'' +
                ", drugRxPrice=" + drugRxPrice +
                ", drugStocks=" + drugStocks +
                ", drugWarning=" + drugWarning +
                ", drugMatrixing=" + drugMatrixing +
                ", status='" + status + '\'' +
                ", mf=" + mf +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        JxcDrug jxcDrug = (JxcDrug) o;
        return Objects.equals(drugId, jxcDrug.drugId) && Objects.equals(drugName, jxcDrug.drugName) && Objects.equals(drugCode, jxcDrug.drugCode) && Objects.equals(drugType, jxcDrug.drugType) && Objects.equals(drugRxType, jxcDrug.drugRxType) && Objects.equals(drugUnit, jxcDrug.drugUnit) && Objects.equals(drugKey, jxcDrug.drugKey) && Objects.equals(drugRxPrice, jxcDrug.drugRxPrice) && Objects.equals(drugStocks, jxcDrug.drugStocks) && Objects.equals(drugWarning, jxcDrug.drugWarning) && Objects.equals(drugMatrixing, jxcDrug.drugMatrixing) && Objects.equals(status, jxcDrug.status) && Objects.equals(mf, jxcDrug.mf);
    }

    @Override
    public int hashCode() {
        return Objects.hash(drugId, drugName, drugCode, drugType, drugRxType, drugUnit, drugKey, drugRxPrice, drugStocks, drugWarning, drugMatrixing, status, mf);
    }

    public Long getMfId() {
        return mfId;
    }

    public void setMfId(Long mfId) {
        this.mfId = mfId;
    }

    public Long getDrugId() {
        return drugId;
    }

    public void setDrugId(Long drugId) {
        this.drugId = drugId;
    }

    public String getDrugName() {
        return drugName;
    }

    public void setDrugName(String drugName) {
        this.drugName = drugName;
    }

    public String getDrugCode() {
        return drugCode;
    }

    public void setDrugCode(String drugCode) {
        this.drugCode = drugCode;
    }

    public String getDrugType() {
        return drugType;
    }

    public void setDrugType(String drugType) {
        this.drugType = drugType;
    }

    public String getDrugRxType() {
        return drugRxType;
    }

    public void setDrugRxType(String drugRxType) {
        this.drugRxType = drugRxType;
    }

    public String getDrugUnit() {
        return drugUnit;
    }

    public void setDrugUnit(String drugUnit) {
        this.drugUnit = drugUnit;
    }

    public String getDrugKey() {
        return drugKey;
    }

    public void setDrugKey(String drugKey) {
        this.drugKey = drugKey;
    }

    public Double getDrugRxPrice() {
        return drugRxPrice;
    }

    public void setDrugRxPrice(Double drugRxPrice) {
        this.drugRxPrice = drugRxPrice;
    }

    public Long getDrugStocks() {
        return drugStocks;
    }

    public void setDrugStocks(Long drugStocks) {
        this.drugStocks = drugStocks;
    }

    public Integer getDrugWarning() {
        return drugWarning;
    }

    public void setDrugWarning(Integer drugWarning) {
        this.drugWarning = drugWarning;
    }

    public Integer getDrugMatrixing() {
        return drugMatrixing;
    }

    public void setDrugMatrixing(Integer drugMatrixing) {
        this.drugMatrixing = drugMatrixing;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public JxcMf getMf() {
        return mf;
    }

    public void setMf(JxcMf mf) {
        this.mf = mf;
    }

    public JxcDrug(Long drugId, String drugName, String drugCode, String drugType, String drugRxType, String drugUnit, String drugKey, Double drugRxPrice, Long drugStocks, Integer drugWarning, Integer drugMatrixing, String status, JxcMf mf) {
        this.drugId = drugId;
        this.drugName = drugName;
        this.drugCode = drugCode;
        this.drugType = drugType;
        this.drugRxType = drugRxType;
        this.drugUnit = drugUnit;
        this.drugKey = drugKey;
        this.drugRxPrice = drugRxPrice;
        this.drugStocks = drugStocks;
        this.drugWarning = drugWarning;
        this.drugMatrixing = drugMatrixing;
        this.status = status;
        this.mf = mf;
    }

    public JxcDrug() {
    }
}
